{extend name="public/base"/}
{block name="style"}
{/block}
{block name="body"}
{include file="public/header" /}
<div class="bodySection">
            
    <div class="centerSection">

        <div class="registerSection  loginBg">
            <div class="section_title2">
                欢迎您登录{:config('web_site_title')}                <span  class="rightSection_titleRight">还没有账号？<a href="/login/register?jumpurl={$backurl|urlencode}">马上注册</a></span>
            </div>

            <div class="rightSection_border">


                <div class="login_form">

                    <div class="block_form">
                        <ul>
                            <li>
                                <div class="block_form_input" style="margin: 0 auto; margin-top: 10px;">
                                    <span class="icon1"></span>
                                    <input id="userphone" type="text" value="" class="inputText"  placeholder="请输入11位手机号"/>
                                    <span id="phonetip" class="error  error2" style="display: none;">
                                                    <i></i>格式有误
                                            </span>
                                </div>
                            </li>
                            <li>
                                <div class="block_form_input" style="margin: 0 auto;">
                                    <span class="icon3"></span>
                                    <input id="userpass" type="password" value="" class="inputText" placeholder="6-20字符, 可用字母/数字/下划线" />
                                    <span id="passtip" class="error  error2" style="display: none;">
                                                    <i></i>密码有误
                                            </span>
                                </div>
                            </li>
                        </ul>
                    </div>

                    <div id="regbtn" class="block_form_button" style="margin: 0 auto; margin-top: 30px;">
                        确认登录
                    </div>

                    <div class="agreeCheckbox">
                        <div class="agreeCheckbox_left"><i class="active  checkboxPlugin" id="useragree"  style="left: 40px;"></i>记住账号</div>
                        <div class="agreeCheckbox_right"><a href="/login/forget?jumpurl={$backurl|urlencode}">忘记密码</a></div>
                    </div>

                    <div class="login_form_list">
                        <div class="title"><span>第三方登录</span></div>

                        <div class="list">
                            <ul class="four" >
								{if !empty($Think.config.wx_pc_apiid)}
								<li class="first" id="weixinquicklogin">
									<a href="">
									<img src="/public/lboyue/images/wx_ico.png" alt="" />
									</a>
									<i>微信</i>
									<div class="wx_code" id="codeWindow" style="display: none;width:280px;height:360px">
										<i class="arrow"></i>
										<span class="title3">微信登录</span>
										<div id="codeWindow2"><iframe src="/login/wxqr?jumpurl={$backurl|urlencode}" frameborder="0" scrolling="no" width="300px" height="400px"></iframe></div>
									</div>
                                </li>
								{/if}
								{if !empty($Think.config.qq_apiid)}
                                <li class=""><a href="/login/login.html?type=qq&jumpurl={$backurl|urlencode}"><img src="/public/lboyue/images/qq_ico.png" alt="" /></a><i>QQ</i></li>
								{/if}
								{if !empty($Think.config.weibo_apikey)}
                                <li class=""><a href="/login/login.html?type=weibo&jumpurl={$backurl|urlencode}"><img src="/public/lboyue/images/wb_ico.png" alt="" /></a><i>微博</i></li>
								{/if}
                            </ul>
                        </div>
                    </div>
                                    </div>


            </div>

        </div>

    </div>
</div>

{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
<script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script type="text/javascript" src="/public/lboyue/js/user.js"></script>
<script type="text/javascript">
	var jumpurl = "{$backurl|urlencode}";
	var redirecturl = "{:config('web_pc_url')}/login/callback";
	$(document).ready(function () {
		inputcheck($("#userphone"),reg_phone,$("#phonetip"));
		inputcheck($("#userpass"),reg_pass,$("#passtip"));
		bindweixinquicklogin($("#weixinquicklogin"));
		$("#regbtn").click(function () {
			var phone = $("#userphone").val();
			var userpass = $("#userpass").val();
			var reurl = "{$backurl|urlencode}";
			phonelogin(phone,userpass,$("#phonetip"),$("#passtip"),reurl);
		});
		setuseragree();
	});
</script>
<script>
    $(document).ready(function () {
        bindnews();
        bindbookshelf();
        bindnav();
    });

</script>
{/block}